package com.lottery.im.api.result.entity.integral;

import android.annotation.SuppressLint;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 作者：cyy
 * 时间：2018/9/20。
 */
public class UserCashList {

  /**
   * id : 379
   * accType : 积分兑换
   * operDate : 20180920164431
   * balance : 19
   * amountIn : 0
   * amountOut : 9
   */

  private int id;
  private String accType;
  private String operDate;
  private float balance;
  private float amountIn;
  private float amountOut;

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getAccType() {
    return accType;
  }

  public void setAccType(String accType) {
    this.accType = accType;
  }

  @SuppressLint("SimpleDateFormat") public String getOperDate() {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
    try {
      Date parse = sdf.parse(operDate);
      return new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒").format(parse);
    } catch (ParseException e) {
      e.printStackTrace();
      return operDate;
    }
  }

  public void setOperDate(String operDate) {
    this.operDate = operDate;
  }

  public float getBalance() {
    return balance;
  }

  public void setBalance(float balance) {
    this.balance = balance;
  }

  public float getAmountIn() {
    return amountIn;
  }

  public void setAmountIn(float amountIn) {
    this.amountIn = amountIn;
  }

  public float getAmountOut() {
    return amountOut;
  }

  public void setAmountOut(float amountOut) {
    this.amountOut = amountOut;
  }
}
